<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit"/><!-- 让360浏览器默认选择webkit内核 -->

    <!-- 全局css -->
    <link rel="shortcut icon" href="${ctxPath}/favicon.ico?v=${app.version}">
    <link href="${ctxPath}/assets/plugins/font-awesome/css/font-awesome.min.css?v=4.7.0" rel="stylesheet">
    <link href="${ctxPath}/assets/plugins/layui/css/layui.css?v=2.7.6" rel="stylesheet">
    <link href="${ctxPath}/assets/plugins/ztree/zTreeStyle.css?v=3.5.28" rel="stylesheet">
    <link href="${ctxPath}/assets/common/css/style.css?v=${app.version}" rel="stylesheet">

    <!-- 全局js -->
    <script src="${ctxPath}/assets/plugins/jquery/jquery.min.js?v=2.1.4"></script>
    <script src="${ctxPath}/assets/plugins/jquery/jquery.cookie.min.js?v=1.4.1"></script>
    <script src="${ctxPath}/assets/plugins/ztree/jquery.ztree.all.min.js?v=3.5.28"></script>
    <script src="${ctxPath}/assets/plugins/layui/layui.js?v=2.7.6"></script>
    <script src="${ctxPath}/assets/plugins/treeGrid/treeGrid.js?v=0.1"></script>
    <script src="${ctxPath}/assets/common/js/dawn.js?v=${app.version}"></script>
    <script src="${ctxPath}/assets/common/js/ajax-object.js?v=${app.version}"></script>
    <script src="${ctxPath}/assets/common/js/ztree-object.js?v=${app.version}"></script>
    <script src="${ctxPath}/assets/common/js/layui-table-object.js?v=${app.version}"></script>
    <script src="${ctxPath}/assets/common/js/layui-treeGrid-object.js?v=${app.version}"></script>
    <title>${app.name}</title>
</head>

<body>
<div class="dawn-body" id="dawn-body">

</div>
<script type="text/javascript">
    $(function () {
        $(".account").text($.cookie("account"));
        let url = Dawn.getQueryValue("url");
        if(url != null) {
            url = Dawn.ctxPath + decodeURIComponent(url) + ".html";
            let search = Dawn.getQueryValue("search");
            let data = {};
            if(search != null) {
                data = JSON.parse(decodeURIComponent(search))
            }
            $.ajax({
                url: url,
                data: data,
                type: "get",
                dataType: "html",
                success: function (html) {
                    $("#dawn-body").html(html);
                }
            })
        }
    });
</script>
</body>
</html>
